package com.cl.bean;

/**
 * Client entity. @author MyEclipse Persistence Tools
 */

public class Client implements java.io.Serializable {

	// Fields

	private Integer CId;
	private Emp emp;
	private String CName;
	private String CTel;
	private String CAddress;
	private Integer CIs = 1;

	// Constructors

	/** default constructor */
	public Client() {
	}

	/** full constructor */
	public Client(Emp emp, String CName, String CTel, String CAddress,
			Integer CIs) {
		this.emp = emp;
		this.CName = CName;
		this.CTel = CTel;
		this.CAddress = CAddress;
		this.CIs = CIs;
	}

	public Integer getCId() {
		return CId;
	}

	public void setCId(Integer cId) {
		CId = cId;
	}

	public Emp getEmp() {
		return emp;
	}

	public void setEmp(Emp emp) {
		this.emp = emp;
	}

	public String getCName() {
		return CName;
	}

	public void setCName(String cName) {
		CName = cName;
	}

	public String getCTel() {
		return CTel;
	}

	public void setCTel(String cTel) {
		CTel = cTel;
	}

	public String getCAddress() {
		return CAddress;
	}

	public void setCAddress(String cAddress) {
		CAddress = cAddress;
	}

	public Integer getCIs() {
		return CIs;
	}

	public void setCIs(Integer cIs) {
		CIs = cIs;
	}
	
	public String getPName(){
		return emp.getDept().getP_name();
	}
}